import request from '@/utils/request'

// 新增附件
export function addFile(data) {
  return request({
    url: '/fmea/common/file',
    method: 'post',
    data: data
  })
}

// 删除附件
export function deleFile(id) {
  return request({
    url: `/fmea/common/file/${id}`,
    method: 'delete'
  })
}

// 查询附件信息
export function getFileList(query) {
  return request({
    url: '/fmea/common/file/list',
    method: 'get',
    params: query
  })
}
